package com.chushouya.product.dto.admin.product.evaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("sku添加评估项目")
public class SkuEvaluateItemAddDTO {

    @ApiModelProperty(value = "skuId", required = true)
    @NotNull(message = "skuId不能为空")
    private Long skuId;

    @ApiModelProperty(value = "评估项目id", required = true)
    @NotEmpty(message = "评估项目id不能为空")
    private List<Long> itemIds;

    @ApiModelProperty(value = "排序, 新增单个时有效, 新增多个按照itemIds的顺序保存")
    private Integer sort;

}
